package com.losca.gulimall.member.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.losca.common.utils.PageUtils;
import com.losca.gulimall.member.entity.MemberEntity;
import com.losca.gulimall.member.vo.MemberUserLoginVo;
import com.losca.gulimall.member.vo.MemberUserRegisterVo;
import com.losca.gulimall.member.vo.SocialUser;

import java.util.Map;

/**
 * 会员
 *
 * @author losca
 * @email 783840358@qq.com
 * @date 2022-12-07 16:13:02
 */
public interface MemberService extends IService<MemberEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void register(MemberUserRegisterVo vo);

    void checkPhoneUnique(String phone);

    void checkUserNameUnique(String userName);

    MemberEntity login(SocialUser socialUser) throws Exception;

    MemberEntity login(MemberUserLoginVo vo);
}

